package com.yunang.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * @ProjectName oa
 * @Author EsnCode
 * @date 2021/4/30
 */

@Data
@TableName("oa_user")
public class OaUser {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    @TableField("user_privileges")     //用户权限
    private Integer userPrivileges;

    @TableField("department_id")
    private Long departmentId;
    @TableField("user_name")
    private String userName;

    @TableField("password")
    private String password;

    @TableField("real_name")
    private String realName;

    @TableField("user_sex")
    private String userSex;

    @TableField("user_age")
    private String userAge;

    @TableField("user_phone")
    private String userPhone;

    @TableField("user_qq")
    private String userQQ;

    @TableField("user_position")    //职位
    private String userPosition;

    @TableField("enter_time")       //入职时间
    private Date enterTime;

    @TableField("user_address")     //用户所在详细地址
    private String userAddress;

    @TableField("status")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;


    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;
}
